const words = ['hello', '', 'world', null, 'javascript', ''];
for (let i = 0; i < words.length; i++) {

if (words[i] === '' || words[i] === null) {
continue;
}
console.log(`有效单词：${words[i]}`);
}